import java.util.*;
public class Employee implements Comparable<Employee> {
Integer id;
String name;
String address;
Character gender;

public Employee(int id,String name,String address,char gender) {
	this.id=id;
	this.name=name;
	this.address=address;
	this.gender=gender;
	
}

public String getAddress() {
	return this.address;
	}
public Integer getId() {
	return id;
	}
public String getName() {
	return this.name;
	}
public Character getGender() {
	return this.gender;
	}
public int compareTo(Employee e) {
	return gender.compareTo(e.getGender());
}
public String toString() {
	return Character.toString(gender);
}
//overriding comareTo method
/*public int compareTo(Employee e) {
	return id.compareTo(e.getId());
}
public int compareTo(Employee e) {
	return address.compareTo(e.getAddress());
}
public int compareTo(Employee e) {
	return name.compareTo(e.getName());
}
//overriding toString Method
public String toString() {
	return this.name;
}
public String toString() {
	return this.address;
}
public String toString() {
	return Integer.toString(id);
}*/

}
